import { LAYOUT } from '@/router/constants';
import { AppRouteRecordRaw } from '@/types/router';

const borrow: AppRouteRecordRaw = {
  orderBy: 10,
  path: '/borrow',
  name: 'Borrow',
  redirect: '/borrow/list',
  component: LAYOUT,
  meta: {
    title: '借阅管理',
    icon: 'code'
  },
  children: [
    {
      path: 'list',
      name: 'BorrowList',
      component: () => import('@/views/borrow/list/index.vue'),
      meta: {
        title: '借阅管理',
        icon: 'code'
      }
    }
  ]
};

export default borrow;
